package com.msblearn.C_009;

import com.msblearn.C_006.T001_TestVolatile;

import java.util.concurrent.locks.ReentrantLock;

/**
 * 跑不起来不读
 * 解决问题就好
 *
 */
public class T001_TestReentrantLock {
    private static volatile int i = 0;

    public static void main(String[] args) {
//        T001_TestReentrantLock tt = new T001_TestReentrantLock();
        ReentrantLock lock = new ReentrantLock();
        lock.lock();
        i++;
        lock.unlock();
    }
}
